package dragon.social.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.Version;

import java.io.Serializable;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author Leo
 * @since 2020-03-19
 */
public class Userinfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 流水号
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    /**
     * 性别
     */
    @TableField("gender")
    private String gender;

    /**
     * 出生日期
     */
    @TableField("birthday")
    private LocalDateTime birthday;

    /**
     * 电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 国家
     */
    @TableField("nation")
    private String nation;

    /**
     * 语言
     */
    @TableField("language")
    private String language;

    /**
     * 是否有效
     */
    @TableField("valid")
    private Boolean valid;

    /**
     * 真是姓名
     */
    @TableField("real_name")
    private String realName;

    /**
     * 网名
     */
    @TableField("display_name")
    private String displayName;

    /**
     * 用户登录账号
     */
    @TableField("login_id")
    private String loginId;

    /**
     * 登录密码
     */
    @TableField("password")
    private String password;

    @Version
    @TableField("version")
    private Integer version;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }
    public LocalDateTime getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDateTime birthday) {
        this.birthday = birthday;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }
    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }
    public Boolean getValid() {
        return valid;
    }

    public void setValid(Boolean valid) {
        this.valid = valid;
    }
    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }
    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }
    public String getLoginId() {
        return loginId;
    }

    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "Userinfo{" +
            "userId=" + userId +
            ", gender=" + gender +
            ", birthday=" + birthday +
            ", phone=" + phone +
            ", nation=" + nation +
            ", language=" + language +
            ", valid=" + valid +
            ", realName=" + realName +
            ", displayName=" + displayName +
            ", loginId=" + loginId +
            ", password=" + password +
            ", version=" + version +
        "}";
    }
}
